package com.cykj.v_m_sprintboot.serviceImpl;

import com.cykj.v_m_sprintboot.bean.TbLoss;
import com.cykj.v_m_sprintboot.mapper.TbLossMapper;
import com.cykj.v_m_sprintboot.service.TbLossService;
import org.apache.ibatis.session.RowBounds;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TbLossServiceImpl implements TbLossService {
    @Autowired
    private TbLossMapper tbLossMapper;
    @Override
    public boolean addLossInfo(TbLoss tbLoss) {
        return tbLossMapper.addLossInfo(tbLoss);
    }

    @Override
    public List<TbLoss> LossList(TbLoss tbLoss, RowBounds row) {
        return tbLossMapper.LossList(tbLoss,row);
    }

    @Override
    public int countLossList(TbLoss tbLoss) {
        return tbLossMapper.countLossList(tbLoss);
    }

    @Override
    public boolean updateLossList(TbLoss tbLoss) {
        return tbLossMapper.updateLossList(tbLoss);
    }

    @Override
    public boolean delLossInfo(TbLoss tbLoss) {
        return tbLossMapper.delLossInfo(tbLoss);
    }

    @Override
    public List<TbLoss> getGoodsType() {
        return tbLossMapper.getGoodsType();
    }

    @Override
    public List<TbLoss> getGoodsName(TbLoss tbLoss) {
        return tbLossMapper.getGoodsName(tbLoss);
    }

    @Override
    public double getWarehouseInfoNum(TbLoss tbLoss) {
        return tbLossMapper.getWarehouseInfoNum(tbLoss);
    }


}
